const key = 'flaging_journal_temp'

import {
  getStore,
  setStore,
  removeStore
} from "."

export const setJournalStore = (value: object) => {
  value && setStore(key, JSON.stringify(value))

}

export const getJournalStore = () => {
  const value = getStore(key)
  return value && JSON.parse(value)
}

export const removeJournalStore = () => {
  removeStore(key)
}